#include <iostream>
using namespace std;
/*
    c++ enum:
    - 每个枚举值默认比前面大一
 */

enum Person { Bill, Mike, Cindy = 6, Lucky };  // {0,1,6,7}

enum { A, B, C, D = 1, E, F = 2147483649 };

int main() {
    Person p = Bill;
    cout << p << endl;
    int a = p;
    cout << a << endl;

    cout << F << endl;
    long long f = 2147483649;
    if(f == F){
        cout << "equal" << endl;
    }
    switch (p) {
        case Bill:
            cout << "I am Bill " << Bill << endl;
            break;
        case Mike:
            cout << "I am Mike " << Mike << endl;
            break;
        case Cindy:
            cout << "I am Cindy " << Cindy << endl;
            break;
        case Lucky:
            cout << "I am Lucky " << Lucky << endl;
            break;
        default:
            cout << "wrong ans" << endl;
    }
    cout << B << endl;
    cout << C << endl;
    cout << D << endl;
    cout << E << endl;

    return 0;
}